package com.fishleap.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author zlg
 * @create 2020-04-21 22:32
 * 封装sqlMapConfig.xml文件中的信息
 */
public class Configuration {

    // 封装sqlMapConfig中的数据源
    private DataSource datasource;

    // 封装多个sql语句对象,key采用唯一标志
    private Map<String, MapperStatement> mapperStatementMap = new HashMap<>();


    public DataSource getDatasource() {
        return datasource;
    }

    public void setDatasource(DataSource datasource) {
        this.datasource = datasource;
    }

    public Map<String, MapperStatement> getMapperStatementMap() {
        return mapperStatementMap;
    }

    public void setMapperStatementMap(Map<String, MapperStatement> mapperStatementMap) {
        this.mapperStatementMap = mapperStatementMap;
    }
}
